package com.xmy.cultivate.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum SubjectsEnum {

    ZERO(0,"无"),
    ONE(1,"英语"),
    TWO(2,"数学"),
    THREE(3,"物理");

    @EnumValue
    private Integer key;

    @JsonValue
    private String value;

    SubjectsEnum(Integer key, String value){
        this.key = key;
        this.value = value;
    }
}
